package com.bos.mapper;

import com.bos.data.model.ProjectPropertyHistoryModel;
import com.bos.data.model.ProjectPropertyModel;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Service;

import java.util.List;

public interface Project_proMapper {
    @Select("select * from project_property ")
    List<ProjectPropertyModel> getAllPropert();

    @Delete("delete from project_property where id=#{id}")
    int delById(int id);

    @Select("select * from project_property_history ")
    List<ProjectPropertyHistoryModel> getAllPropertyHistory();

    @Delete("delete from project_property where id=#{id}")
    int delHistoryById(int id);
}
